/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Adrian
 */
import javax.swing.*;
import py.com.systven.view.DepartamentoView;
import py.com.systven.view.UnidadProductoView;
import py.com.systven.view.Clienteview;
import py.com.systven.view.MovimientoPresupuestoVenta;
import utilitarios.*;
public class VentanaPrincipal extends javax.swing.JFrame {
    data mostrar_datos;
    String set_look = "com.sun.java.swing.plaf.metal.MetalLookAndFeel";

    /**
     * Creates new form VentanaPrincipal
     */
    public VentanaPrincipal() {
        initComponents();
        mostrar_datos = new data();
        mostrar_datos.el_dato();//primero tengo que ejecutar este metodo para despues ejecutar el resto
        lbl_data.setText("Hoy es "+mostrar_datos.dia_semana+ " "+mostrar_datos.dia+" de "+mostrar_datos.mes+" del año "+mostrar_datos.anho);
    timer1.start();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        timer1 = new org.netbeans.examples.lib.timerbean.Timer();
        jPanel1 = new javax.swing.JPanel();
        btn_cliente = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();
        lbl_data = new javax.swing.JLabel();
        lbl_hora = new javax.swing.JLabel();
        jMenuBar1 = new javax.swing.JMenuBar();
        menu_registros = new javax.swing.JMenu();
        mitem_clientes = new javax.swing.JMenuItem();
        mitem_direccion = new javax.swing.JMenuItem();
        mitem_ciudades = new javax.swing.JMenuItem();
        jSeparator2 = new javax.swing.JPopupMenu.Separator();
        mitem_barrios = new javax.swing.JMenuItem();
        mitem_funcionarios = new javax.swing.JMenuItem();
        mitem_cargo = new javax.swing.JMenuItem();
        jMenuItem9 = new javax.swing.JMenuItem();
        jSeparator4 = new javax.swing.JPopupMenu.Separator();
        mitem_proveedores = new javax.swing.JMenuItem();
        jSeparator1 = new javax.swing.JPopupMenu.Separator();
        jMenuItem10 = new javax.swing.JMenuItem();
        jMenuItem11 = new javax.swing.JMenuItem();
        mitem_salir = new javax.swing.JMenuItem();
        menu_consultas = new javax.swing.JMenu();
        jMenuItem1 = new javax.swing.JMenuItem();
        jMenuItem2 = new javax.swing.JMenuItem();
        menu_reportes = new javax.swing.JMenu();
        jMenuItem3 = new javax.swing.JMenuItem();
        jMenuItem12 = new javax.swing.JMenuItem();
        menu_utilitarios = new javax.swing.JMenu();
        jMenuItem8 = new javax.swing.JMenuItem();
        jMenuItem4 = new javax.swing.JMenuItem();
        jMenuItem5 = new javax.swing.JMenuItem();
        jMenuItem6 = new javax.swing.JMenuItem();
        jMenuItem7 = new javax.swing.JMenuItem();
        menu_salir = new javax.swing.JMenu();

        timer1.addTimerListener(new org.netbeans.examples.lib.timerbean.TimerListener() {
            public void onTime(java.awt.event.ActionEvent evt) {
                timer1OnTime(evt);
            }
        });

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Prototipo Sistema Control de Stock");

        jPanel1.setBackground(new java.awt.Color(255, 102, 0));

        btn_cliente.setIcon(new javax.swing.ImageIcon("C:\\systock\\imagenes\\cliente1.png")); // NOI18N
        btn_cliente.setText("Cliente");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(38, 38, 38)
                .addComponent(btn_cliente)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addComponent(btn_cliente, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(21, Short.MAX_VALUE))
        );

        jLabel1.setIcon(new javax.swing.ImageIcon("C:\\systock\\imagenes\\politecnica.png")); // NOI18N

        lbl_data.setText("Fecha:");

        lbl_hora.setText("Hora:");

        menu_registros.setMnemonic('R');
        menu_registros.setText("Registros");

        mitem_clientes.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.CTRL_MASK));
        mitem_clientes.setIcon(new javax.swing.ImageIcon("C:\\systock\\imagenes\\clientes.png")); // NOI18N
        mitem_clientes.setMnemonic('C');
        mitem_clientes.setText("Cliente");
        mitem_clientes.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mitem_clientesActionPerformed(evt);
            }
        });
        menu_registros.add(mitem_clientes);

        mitem_direccion.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_D, java.awt.event.InputEvent.CTRL_MASK));
        mitem_direccion.setIcon(new javax.swing.ImageIcon("C:\\systock\\imagenes\\ciudad.png")); // NOI18N
        mitem_direccion.setMnemonic('D');
        mitem_direccion.setText("Direccion");
        menu_registros.add(mitem_direccion);

        mitem_ciudades.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_T, java.awt.event.InputEvent.ALT_MASK));
        mitem_ciudades.setIcon(new javax.swing.ImageIcon("C:\\systock\\imagenes\\barrio.png")); // NOI18N
        mitem_ciudades.setMnemonic('I');
        mitem_ciudades.setText("Telefono");
        menu_registros.add(mitem_ciudades);
        menu_registros.add(jSeparator2);

        mitem_barrios.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_J, java.awt.event.InputEvent.ALT_MASK));
        mitem_barrios.setIcon(new javax.swing.ImageIcon("C:\\systock\\imagenes\\money.png")); // NOI18N
        mitem_barrios.setMnemonic('B');
        mitem_barrios.setText("Tipo de Pago");
        mitem_barrios.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mitem_barriosActionPerformed(evt);
            }
        });
        menu_registros.add(mitem_barrios);

        mitem_funcionarios.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F, java.awt.event.InputEvent.ALT_MASK));
        mitem_funcionarios.setIcon(new javax.swing.ImageIcon("C:\\systock\\imagenes\\funcionario.png")); // NOI18N
        mitem_funcionarios.setMnemonic('F');
        mitem_funcionarios.setText("Funcionarios");
        mitem_funcionarios.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mitem_funcionariosActionPerformed(evt);
            }
        });
        menu_registros.add(mitem_funcionarios);

        mitem_cargo.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_G, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.CTRL_MASK));
        mitem_cargo.setIcon(new javax.swing.ImageIcon("C:\\systock\\imagenes\\cargo.png")); // NOI18N
        mitem_cargo.setMnemonic('O');
        mitem_cargo.setText("Cargo");
        menu_registros.add(mitem_cargo);

        jMenuItem9.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_M, java.awt.event.InputEvent.CTRL_MASK));
        jMenuItem9.setIcon(new javax.swing.ImageIcon("C:\\systock\\imagenes\\world.png")); // NOI18N
        jMenuItem9.setText("Departamentos");
        jMenuItem9.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem9ActionPerformed(evt);
            }
        });
        menu_registros.add(jMenuItem9);
        menu_registros.add(jSeparator4);

        mitem_proveedores.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_P, java.awt.event.InputEvent.ALT_MASK));
        mitem_proveedores.setIcon(new javax.swing.ImageIcon("C:\\systock\\imagenes\\user-32.png")); // NOI18N
        mitem_proveedores.setMnemonic('P');
        mitem_proveedores.setText("Proveedores");
        menu_registros.add(mitem_proveedores);
        menu_registros.add(jSeparator1);

        jMenuItem10.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_P, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.CTRL_MASK));
        jMenuItem10.setIcon(new javax.swing.ImageIcon("C:\\systock\\imagenes\\folder_camera.png")); // NOI18N
        jMenuItem10.setText("Producto");
        menu_registros.add(jMenuItem10);

        jMenuItem11.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_U, java.awt.event.InputEvent.SHIFT_MASK));
        jMenuItem11.setIcon(new javax.swing.ImageIcon("C:\\systock\\imagenes\\wrench_orange.png")); // NOI18N
        jMenuItem11.setText("Unidad");
        jMenuItem11.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem11ActionPerformed(evt);
            }
        });
        menu_registros.add(jMenuItem11);

        mitem_salir.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.CTRL_MASK));
        mitem_salir.setIcon(new javax.swing.ImageIcon("C:\\systock\\imagenes\\salir.png")); // NOI18N
        mitem_salir.setMnemonic('S');
        mitem_salir.setText("Salir");
        menu_registros.add(mitem_salir);

        jMenuBar1.add(menu_registros);

        menu_consultas.setMnemonic('C');
        menu_consultas.setText("Movimientos");

        jMenuItem1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_V, java.awt.event.InputEvent.SHIFT_MASK));
        jMenuItem1.setIcon(new javax.swing.ImageIcon("C:\\systock\\imagenes\\getmoney.png")); // NOI18N
        jMenuItem1.setText("Ventas");
        menu_consultas.add(jMenuItem1);

        jMenuItem2.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_P, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.CTRL_MASK));
        jMenuItem2.setIcon(new javax.swing.ImageIcon("C:\\systock\\imagenes\\money.png")); // NOI18N
        jMenuItem2.setText("Presupuesto");
        jMenuItem2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem2ActionPerformed(evt);
            }
        });
        menu_consultas.add(jMenuItem2);

        jMenuBar1.add(menu_consultas);

        menu_reportes.setMnemonic('R');
        menu_reportes.setText("Reportes");

        jMenuItem3.setIcon(new javax.swing.ImageIcon("C:\\systock\\imagenes\\relatorio.png")); // NOI18N
        jMenuItem3.setText("Reportes de Ventas");
        jMenuItem3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem3ActionPerformed(evt);
            }
        });
        menu_reportes.add(jMenuItem3);

        jMenuItem12.setIcon(new javax.swing.ImageIcon("C:\\systock\\imagenes\\salir.png")); // NOI18N
        jMenuItem12.setText("Salir");
        menu_reportes.add(jMenuItem12);

        jMenuBar1.add(menu_reportes);

        menu_utilitarios.setMnemonic('U');
        menu_utilitarios.setText("Utilitarios");
        menu_utilitarios.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menu_utilitariosActionPerformed(evt);
            }
        });

        jMenuItem8.setText("Look and Feel - Windows 98");
        jMenuItem8.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem8ActionPerformed(evt);
            }
        });
        menu_utilitarios.add(jMenuItem8);

        jMenuItem4.setText("Look and Feel - Windows");
        jMenuItem4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem4ActionPerformed(evt);
            }
        });
        menu_utilitarios.add(jMenuItem4);

        jMenuItem5.setText("Look and Feel - Liquid");
        jMenuItem5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem5ActionPerformed(evt);
            }
        });
        menu_utilitarios.add(jMenuItem5);

        jMenuItem6.setText("Look and Feel - Metal");
        jMenuItem6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem6ActionPerformed(evt);
            }
        });
        menu_utilitarios.add(jMenuItem6);

        jMenuItem7.setText("Look and Feel - Nimbus");
        jMenuItem7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem7ActionPerformed(evt);
            }
        });
        menu_utilitarios.add(jMenuItem7);

        jMenuBar1.add(menu_utilitarios);

        menu_salir.setMnemonic('S');
        menu_salir.setText("Salir");
        menu_salir.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                menu_salirMouseClicked(evt);
            }
        });
        jMenuBar1.add(menu_salir);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 448, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(41, 41, 41)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lbl_data)
                            .addComponent(lbl_hora))))
                .addContainerGap(312, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jLabel1)
                .addGap(31, 31, 31)
                .addComponent(lbl_data)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(lbl_hora)
                .addContainerGap(108, Short.MAX_VALUE))
        );

        setBounds(0, 0, 500, 400);
    }// </editor-fold>//GEN-END:initComponents

    private void mitem_clientesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mitem_clientesActionPerformed
String args[] = new String[1];//creamos un vectorcito aquí de una sola posición;
args[0] = "Registro de Clientes";//es este el parámetro que le pasamos a nuestro método main
Clienteview.main(args);        // TODO add your handling code here:
    }//GEN-LAST:event_mitem_clientesActionPerformed

    private void mitem_barriosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mitem_barriosActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_mitem_barriosActionPerformed

    private void mitem_funcionariosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mitem_funcionariosActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_mitem_funcionariosActionPerformed

    private void timer1OnTime(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_timer1OnTime
mostrar_datos.leer_hora();
lbl_hora.setText("Hora actual: "+mostrar_datos.hora);
// TODO add your handling code here:
    }//GEN-LAST:event_timer1OnTime

    private void menu_salirMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_menu_salirMouseClicked
        System.exit(0);// TODO add your handling code here:
    }//GEN-LAST:event_menu_salirMouseClicked

    private void jMenuItem4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem4ActionPerformed
set_look = "com.sun.java.swing.plaf.windows.WindowsLookAndFeel";
lookandfeel();
        // TODO add your handling code here:
    }//GEN-LAST:event_jMenuItem4ActionPerformed

    private void jMenuItem5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem5ActionPerformed
set_look = "com.birosoft.liquid.LiquidLookAndFeel";
lookandfeel();          // TODO add your handling code here:
    }//GEN-LAST:event_jMenuItem5ActionPerformed

    private void menu_utilitariosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menu_utilitariosActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_menu_utilitariosActionPerformed

    private void jMenuItem6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem6ActionPerformed
set_look = "javax.swing.plaf.metal.MetalLookAndFeel";
lookandfeel();        // TODO add your handling code here:
    }//GEN-LAST:event_jMenuItem6ActionPerformed

    private void jMenuItem7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem7ActionPerformed
set_look = "com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel";
lookandfeel();        // TODO add your handling code here:
    }//GEN-LAST:event_jMenuItem7ActionPerformed

    private void jMenuItem8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem8ActionPerformed
set_look = "com.sun.java.swing.plaf.windows.WindowsClassicLookAndFeel";  
lookandfeel();// TODO add your handling code here:
    }//GEN-LAST:event_jMenuItem8ActionPerformed

    private void jMenuItem9ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem9ActionPerformed
String args[] = new String[1];
args[0] = "Registro de Departamento";
DepartamentoView.main(args);        // TODO add your handling code here:
    }//GEN-LAST:event_jMenuItem9ActionPerformed

    private void jMenuItem11ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem11ActionPerformed
   String args[] = new String[1];
   args[0] = "Registro de unidad de producto";
   UnidadProductoView.main(args);        // TODO add your handling code here:
    }//GEN-LAST:event_jMenuItem11ActionPerformed

    private void jMenuItem2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem2ActionPerformed
String args[] = new String [1];
args[0] = "Movimiento - Registro de Presupuesto";
MovimientoPresupuestoVenta.main(args);        // TODO add your handling code here:
    }//GEN-LAST:event_jMenuItem2ActionPerformed

    private void jMenuItem3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem3ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jMenuItem3ActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(VentanaPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(VentanaPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(VentanaPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(VentanaPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new VentanaPrincipal().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btn_cliente;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JMenuItem jMenuItem10;
    private javax.swing.JMenuItem jMenuItem11;
    private javax.swing.JMenuItem jMenuItem12;
    private javax.swing.JMenuItem jMenuItem2;
    private javax.swing.JMenuItem jMenuItem3;
    private javax.swing.JMenuItem jMenuItem4;
    private javax.swing.JMenuItem jMenuItem5;
    private javax.swing.JMenuItem jMenuItem6;
    private javax.swing.JMenuItem jMenuItem7;
    private javax.swing.JMenuItem jMenuItem8;
    private javax.swing.JMenuItem jMenuItem9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPopupMenu.Separator jSeparator1;
    private javax.swing.JPopupMenu.Separator jSeparator2;
    private javax.swing.JPopupMenu.Separator jSeparator4;
    private javax.swing.JLabel lbl_data;
    private javax.swing.JLabel lbl_hora;
    private javax.swing.JMenu menu_consultas;
    private javax.swing.JMenu menu_registros;
    private javax.swing.JMenu menu_reportes;
    private javax.swing.JMenu menu_salir;
    private javax.swing.JMenu menu_utilitarios;
    private javax.swing.JMenuItem mitem_barrios;
    private javax.swing.JMenuItem mitem_cargo;
    private javax.swing.JMenuItem mitem_ciudades;
    private javax.swing.JMenuItem mitem_clientes;
    private javax.swing.JMenuItem mitem_direccion;
    private javax.swing.JMenuItem mitem_funcionarios;
    private javax.swing.JMenuItem mitem_proveedores;
    private javax.swing.JMenuItem mitem_salir;
    private org.netbeans.examples.lib.timerbean.Timer timer1;
    // End of variables declaration//GEN-END:variables

public void lookandfeel()
{
try
{
//La variable set look tiene que estar definida arriba como una variable String
UIManager.setLookAndFeel(set_look);
SwingUtilities.updateComponentTreeUI(this);
}
catch (Exception error)
{
JOptionPane.showMessageDialog(null, error);
}
}
}